//client.cc
 
#include "Comm.hpp"
#include "Shm.hpp"
#include "Fifo.hpp"
 
int main()
{
    Shm shm(pathname, projid, USER);

    FileOperation fo(PATH,NAME);
    fo.OpenForWrite();
    char* mem = (char*)shm.VirtualAddr();
    int index = 0;
    for (char c = 'A'; c <= 'Z'; c++, index+=2)
    {
        sleep(1);
        mem[index] = c;
        sleep(1);
        mem[index+1] = c;
        fo.Wakeup();
    }
 
    fo.Close();
    return 0;
}
 